package com.googlecode.tapestry5validator.hibernate.adapters;

import java.util.Map;

import org.hibernate.validator.Max;

/**
 * Using for all validators, wich have one parameter for check,
 * (example {@link Max} validator use one parameter value).
 * <p>
 * For many parameter using {@link ParametersToJsonAdapter}
 * 
 * @see ParametersToJsonAdapter
 * @author Valentine Yerastov
 */
public abstract class ValueAdapter extends NotRequiredAdapter {

	@Override
	public Object fetchToJSParametrs(Map<String, Object> parameters) {
		return parameters.get("value");
	}
	
}
